package com.zhx.basis.设计模式.观察者模式.demo1.listen;

import com.zhx.basis.设计模式.观察者模式.demo1.LotteryResult;

public class MessageEventListener implements EventListener {

    @Override
    public void doEvent(LotteryResult result) {
        System.out.println(String.format("给用户 {%s} 发送短信通知(短信)：{%s}",result.getUid(), result.getLottery()));
    }

}

